package com.yuyou.train.lesson.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import com.yuyou.train.service.api.lesson.dto.RuleDetailDTO;
import com.yuyou.train.service.api.lesson.entity.Rule;
import com.yuyou.train.util.bean.Pagination;


@Mapper
public interface RuleMapper {
    int deleteByPrimaryKey(String id);

    int insert(Rule record);

    Rule selectByPrimaryKey(String id);

    RuleDetailDTO selectDetailByPrimaryKey(String id);
    
    int updateByPrimaryKeySelective(Rule record);
    
    List<RuleDetailDTO> findRulePageList(Pagination<RuleDetailDTO> p);
    
    int findRulePageCount(Pagination<RuleDetailDTO> p);
    

}